---
title: Code completions
sidebar_position: 1
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

# Code completions

Get accurate code-at-cursor from state-of-the-art reasoning models.

✓ Includes selected context \
✓ Designed for on-demand use

You can use it:

- on-demand in the Home tab,
- via the command palette,
- keybindings you set up for \
  `Code Web Chat: Code Completion` and \
  `Code Web Chat: Code Completion using...` commands.

## API message structure

```
Find correct replacement for <missing_text> symbol. Respond with replacement text in "replacement" XML tags, without explanations or any other text.
<files>
  <document title="...">...</document> // selected websites
  ...
  <file path="...">...</file> // selected workspace files excluding current editor
  ...
  <file path="..."> // current editor
    ...
    <missing_text> // cursor position
    ...
  </file>
</files>
Find correct replacement for <missing_text> symbol. Respond with replacement text in "replacement" XML tags, without explanations or any other text.
```
